package com.wnxy.carl.param;

public class PageParam<T> {
    private Integer pageIndex;
    private Integer pageSize;
    private T data;

    public static PageParam<?> build(){
        return new PageParam<>();
    }
    public PageParam() {
    }

    public PageParam(Integer pageIndex, Integer pageSize, T data) {
        this.pageIndex = pageIndex;
        this.pageSize = pageSize;
        this.data = data;
    }

    public Integer getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(Integer pageIndex) {
        this.pageIndex = pageIndex;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
}
